package cn.edu.cqut.test8;

import cn.edu.cqut.test1.Person;

public class Main {
	public static void main(String[] args) {
		Person zhangsan = new Person("张三",20);
		Person lisi = new Person("张三",21);
		if(zhangsan == lisi)
			System.out.println("true");
		else
			System.out.println("false");
		if(zhangsan.equals(lisi))
			System.out.println("true");
		else
			System.out.println("false");
		
		if(zhangsan.compareTo(lisi)==0)
			System.out.println("true");
		else
			System.out.println("false");
		
		Dog dog = new Dog();
		if(zhangsan.equals(dog))
			System.out.println("true");
		else
			System.out.println("false");	
	}
}

class Dog
{
	
}
